#include "ChangeWindow.h"

ChangeWindow::ChangeWindow(QObject *parent) :
    QThread(parent)
{

}



void ChangeWindow::changeWindow(QString windowName){

    HWND hWnd = FindWindow( NULL, (wchar_t *) QString(windowName).utf16());
    if( hWnd > 0 ){
        SetForegroundWindow( hWnd );
    }

}
